package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IDetailTripDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.DetailTrip;
import com.ricchieri.service.interf.IDetailTripService;

@Transactional(readOnly = true)
public class DetailTripService implements IDetailTripService, Serializable {
	private static final long serialVersionUID = 2984419105536930106L;
	IDetailTripDao detailTripDao;
		@Override
	@Transactional(readOnly = true)
	public List<DetailTrip> getAllDetailTrip() {
		BasicFilter filter = new BasicFilter();
		return detailTripDao.getAllDetailTrip(filter);
	}

	public IDetailTripDao getDetailTripDao() {
		return detailTripDao;
	}

	public void setDetailTripDao(IDetailTripDao detailTripDao) {
		this.detailTripDao = detailTripDao;
	}
}
